package com.jk.controller;

import com.jk.entity.GzrzEntity;
import com.jk.service.GzrzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/gzrz")
public class GzrzCotroller {
    @Autowired
    private GzrzService gzrzService;


    @RequestMapping("/addGzrz")
    public void addGzrz(GzrzEntity gzrzEntity, HttpServletRequest request){

        gzrzService.addGzrz(gzrzEntity,request);
    }
    @RequestMapping("/getGzrz")
    public List<GzrzEntity> getGzrz(){

       return gzrzService.getGzrz();
    }
}
